// gmx shines, thanks the great gmx
// cyx shines, thanks the great cyx
// freopen,froepen,ioi,akioi,ccf
// everyone plz, watch Arknights live
#include <bits/stdc++.h>
using namespace std;
constexpr int N(1e5);
int a[N+5];
int main() {
    freopen("duel.in","r",stdin);
    freopen("duel.out","w",stdout);
    cin.tie(nullptr)->sync_with_stdio(false);
    int n;cin>>n;
    for (int i{1};i<=n;++i) cin>>a[i];
    priority_queue<int,vector<int>,greater<int>> q;
    sort(a+1,a+1+n);
    int ls{n};
    for (int i{1};i<=n;++i) {
        if (q.size()&&q.top()<a[i]) q.pop(),--ls;
        q.push(a[i]);
    }
    cout<<ls<<endl;
    return 0;
}